package com.zjz.demo01;

public class Client {
    public static void main(String[] args) {
        UserServiceImpl userService = new UserServiceImpl();

        UserServiceProxy userServiceProxy = new UserServiceProxy();
        userServiceProxy.setUserService(userService);

        userService.add(); // 厂商的方法
        userServiceProxy.add(); // 代理的方法

    }
}
